package gttp.nspa.shared.om;

import com.google.gson.annotations.SerializedName;
import com.google.gwt.user.client.rpc.IsSerializable;

public class Product implements IsSerializable, IEntity {

    @SerializedName("c")
    private String  code;

    @SerializedName("n")
    private String  name;

    @SerializedName("p")
    private int     price;

    @SerializedName("d")
    private String  desc;

    @SerializedName("t")
    private boolean active;

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public int getPrice() {
        return price;
    }

    public String getDesc() {
        return desc;
    }

    public boolean isActive() {
        return active;
    }

    public boolean isOccupied() {
        return false;
    }

    public String toString() {
        return code + name;
    }

}
